module app {

	export class CommandBootstrap extends puremvc.SimpleCommand implements puremvc.ICommand {

		public constructor() {
			super();
		}

		public execute(notification: puremvc.INotification): void {
			this.facade.registerCommand(Commands.LOGIN, LoginCommand);
			this.facade.registerCommand(Commands.JOIN_GAME, JoinGameCommand);

			this.initStage();
		}

		private initStage() {
			this.facade.sendNotification(Commands.LOGIN);
		}
	}
}